package comxin.demo1.nodestream;

import org.junit.Test;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FilePutputStreamdemo_03 {
    @Test
    public void method01() throws IOException {
        FileOutputStream fileOutputStream1=new FileOutputStream("IOdemo_03");
//        fileOutputStream1.write(97);
//        fileOutputStream1.close();
        byte [] aByte={97,98,99,100,101,102};

        fileOutputStream1.write(aByte,2,3);


    }
}
